class Solution
{
public:
    vector<int> twoSum(vector<int>& price, int target)
    {
        int i = 0;
        int j = price.size() - 1;
        while (i < j)
        {
            int sp = price[i] + price[j];
            if (sp < target)  i++;
            else if (sp > target)  j--;
            else return{ price[i] , price[j] };
        }

        return {};
    }
};